package com.strategy;

public class Main {
    public static void main(String[] args) {
        Dog dog1 = new Dog(10);
        Dog dog2 = new Dog(30);
        Dog dog3 = new Dog(20);
        Dog[] dogs = {dog1, dog2, dog3};
        Sorter<Dog> sorter = new Sorter();
        DogComparator dogComparator = new DogComparator();
        sorter.sort(dogs, dogComparator);
        for(Dog dog : dogs){
            System.out.println(dog.toString());
        }
    }
}
